package cn.earl.springboot.test;

public class Fibonacci {

	public static void main(String[] args) {
		int[] a = new int[20];
		a[0] = 1;
		a[1] = 1;
		int n = 2;
		for (; n < 20; n++) {
			a[n] = a[n - 1] + a[n - 2];
		}
		for (n = 0; n < 20; n++) {
			System.out.print(a[n] + "  ");
		}
	}

}
